package com.yesep.learn.design.behavioral.state;

public class RedLightState implements ILightState {
    @Override
    public void handle(LightContext lightContext) {
        System.out.println("Red light is on.");
        lightContext.change(LightState.GREEN);
    }
}